package wang.Demo;

public class SuShuDemo6_2 {
    public static void main(String[] args) {
        //找素数
        System.out.println(serch(101,200));
    }
    public static int serch(int a, int b){
        int counte =0;
        out:
        for (int i = a; i <=b ; i++) {

            for (int j = 2; j <=i/2 ; j++) {
                if (i % j == 0) {
                    continue out;
                }
            }
            System.out.println(i);
            counte++;
            }

        return counte;
    }
}